﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="NewItem.aspx.vb" Inherits="NewItem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <h2>
        Add New Item
</h2>
    <p>

            <asp:Label ID="Label6" runat="server" Text="Destination Type"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<asp:DropDownList 
                ID="DDLdest" runat="server">
                <asp:ListItem Value="0">Local</asp:ListItem>
                <asp:ListItem Value="1">Global</asp:ListItem>
            </asp:DropDownList>
            &nbsp;<br />

            <asp:Label ID="Label1" runat="server" Text="Item Type"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:DropDownList 
                ID="DDLItemType" runat="server" DataSourceID="SqlDataSource1" 
                DataTextField="ParcelType" DataValueField="ID">
            </asp:DropDownList>
            <br />
            <asp:Label ID="Label2" runat="server" Text="Weight"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TBweight" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label3" runat="server" Text="Cost:"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TBcost" runat="server" ReadOnly="True" Height="22px"></asp:TextBox>
</p>
    <p>

            <asp:Label ID="Label4" runat="server" Text="Sender:"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:DropDownList 
                ID="DDLItemType0" runat="server" DataSourceID="SqlDataSource2" 
                DataTextField="Name" DataValueField="ID">
               </asp:DropDownList> &nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="lbtnRecordID2" runat="server" Text="" OnClick="lbtnRecordID_Click">[Add Customer]</asp:LinkButton>
            
            <br />
            <asp:Label ID="Label5" runat="server" Text="Receiver Name"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TBemail" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label7" runat="server" Text="Receiver Address"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="TBemail0" runat="server"></asp:TextBox>
            <br />
            <asp:Label ID="Label8" runat="server" Text="Receiver Contact"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:TextBox 
                ID="TBemail1" runat="server"></asp:TextBox>
</p>
    <p>

            <asp:Button ID="Button2" runat="server" Text="Proceed" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

            </p>
<p>

            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:MailSystemConnectionString2 %>" 
                SelectCommand="SELECT [ID], [ParcelType] FROM [tblParcelType]">
            </asp:SqlDataSource>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                ConnectionString="<%$ ConnectionStrings:MailSystemConnectionString2 %>" 
                SelectCommand="SELECT [Name], [ID] FROM [tblCustomer]"></asp:SqlDataSource>
</p>
      
</asp:Content>

